#include "ScnsMpu9250.c.h"

#if defined(SCNS_MPU9250_ENABLE)&&SCNS_MPU9250_ENABLE==1

#include "ScnsIic.h"

static const uint8 device[SCNS_MPU9250_MAX]={0XD0};

ScnsStatus scnsBspMpu9250Write(ScnsMpu9250Enum mpuN,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen)
{
    return scnsIicWriteTick(SCNS_IIC_SOFT_1,device[mpuN],addr,addrLen,data,dataLen,2);
}

ScnsStatus scnsBspMpu9250Read(ScnsMpu9250Enum mpuN,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen)
{
    return scnsIicReadTick(SCNS_IIC_SOFT_1,device[mpuN],addr,addrLen,data,dataLen,2);
}

#endif
